import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'

import store from './store'

import router from './router'

import './permission.js'
import '@/icons' // icon

// 导入定义好的插件
import componentPlugin from '@/components'
import httpPlugin from '@/components'
Vue.use(ElementUI)
Vue.use(httpPlugin)

Vue.config.productionTip = false
// 调用全局插件
Vue.use(componentPlugin)
console.log(process.env)
// vue实例化
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
